import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../base/entity/base";

@Entity('user_contact')
export class UserContactEntity extends BaseEntity {
    @Column({ comment: '用户ID' })
    userId: number;

    @Column({ comment: '联系人姓名' })
    name: string;

    @Column({ comment: '联系人手机号' })
    phone: string;

    @Column({ comment: '地址' })
    address: string;

    @Column({ comment: '是否默认', default: false })
    isDefault: boolean;
}